package com.agile.leetcode.designmodel.decorator;

/**
 * @Author KD
 * @Date 2021/1/11 16:50
 */
public class Client {
    public static void main(String[] args) {
        // 定义被装饰着
        IPerson durant=new Durant();
        // 定义装饰器
        Decorator decorator=new ConcrateDecorator1(durant);
        decorator.show();
        // 装饰器二
        Decorator decorator1=new ConcreateDecorator2(decorator);
        decorator1.show();
    }
}
